package store

import "github.com/boltdb/bolt"

type DelCmd struct {
	tCmdBase

	Key []byte
}

func (me *DelCmd) Apply(tx *bolt.Tx) error {
	b := tx.Bucket(gDataBucket)
	return b.Delete(me.Key)
}

func (me *DelCmd) Tag() int {
	return gDelCmdTag
}
